<!--底部导航-->
{if $_W['_config']['navswitch'] || $_W['_config']['navswitch']==''}<nav class="mui-bar mui-bar-tab" id="bar">
    <a class="mui-tab-item{if $_GPC['op']=='display'||$_GPC['op']==''} mui-active{/if}" href="{php echo app_url('home/index/display')}">
        <span class="mui-icon iconfont icon-home"></span>
        <span class="mui-tab-label">首页</span>
    </a>
    <a class="mui-tab-item{if $_GPC['op']=='activity'} mui-active{/if}" href="{php echo app_url('home/index/activity')}">
        <span class="mui-icon iconfont icon-qizhi"></span>
        <span class="mui-tab-label">赛事</span>
    </a>
    <a class="mui-tab-item{if $_GPC['op']=='grade'} mui-active{/if}" href="{php echo app_url('home/index/grade')}" >
        <span class="mui-icon iconfont icon-svg"></span>
        <span class="mui-tab-label">成绩</span>
    </a>
    <a class="mui-tab-item{if $_GPC['op']=='my'||$_GPC['op']=='myapply'||$_GPC['op']=='mydata'||$_GPC['op']=='mycollect'||$_GPC['op']=='myremind'||$_GPC['op']=='mycoin'||$_GPC['op']=='myphoto'} mui-active{/if}" href="{php echo app_url('home/index/my')}">
        <span class="mui-icon iconfont icon-copy"></span>
        <span class="mui-tab-label">我的</span>
    </a>
</nav>

<script>
mui.init();
mui('.mui-bar-tab').on('tap','a',function(){
	var $this = $(this);
	if (this.getAttribute('href') != null) {
		console.log(this.getAttribute('href'));
		location.href = this.getAttribute('href');
	} else {
		return false;
	}
})
</script>{/if}
